package com.woniuxy.medicine.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.commons.entity.Medicine;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.http.ResponseEntity;


import java.util.List;

/**
 * @author 雷珉
 * @date 2022年06月08日 16:27
 */
public interface MedicineService {
    ResponseResult<List<Medicine>> findAll();

    ResponseResult<PageInfo<Medicine>> findAllByCondition(QueryEntity<Medicine> queryEntity);

    ResponseResult<Medicine> findOne(int id);

    ResponseResult<List<Medicine>> findBatch(int[] ids);

    ResponseResult addOne(Medicine Medicine);

    ResponseResult deleteOne(int id);

    ResponseResult deleteBatch(int[] ids);

    ResponseResult updateOne(Medicine Medicine);
}